package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.admin.api.req.CardQueryReq;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Card;

import java.util.Set;

public interface CardService {

    Result<IPage<Card>> listPage(CardQueryReq req);

    Result<Card> getById(Integer id);

    Result add(Card card);

    Result stop(Integer id);

    Result updateById(Card card);

    Result deleteByIds(Set<Integer> ids);

}
